<?php

namespace App\System\Base\Repositories;

use App\System\Base\Helpers\Traits\SinglePattern;
use App\System\Base\Model\BaseSetting;
use Zend\Log\Writer\Db;


class BaseSettingRepository extends Repository
{
    use SinglePattern;

    public function getSetting()
    {
        $res = BaseSetting::get();
        $data = array();
        foreach ($res as $v)
        {
            $data[$v->id] = $v->value;
        }
        return $data;
    }
}